package com.wecan.oauth;

import com.wecan.components.oss.annotation.EnableOSS;
import com.wecan.components.pay.annotation.EnablePay;
import com.wecan.components.sms.annotation.EnableSMS;
import com.wecan.web.annotation.EnablePermission;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author liuzhihao
 * @Date 2022.01.08
 * @Version ${version}
 * @Description ${description}
 */
@EnableDiscoveryClient
@EnableOSS
@EnableSMS
@EnablePay
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableFeignClients(basePackages = "com.wecan.api.*")
@EnablePermission
public class OauthApplication {

    public static void main(String[] args) {
        SpringApplication.run(OauthApplication.class, args);
    }
}
